<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<link href="./css/common.css" rel="stylesheet"  />
<link href="../../css/buttons.css" rel="stylesheet"  />
<script type="text/javascript" src="../../js/util.js"></script>
<script type="text/javascript" src="../../js/new-ajax.js"></script>
<script type="text/javascript" src="../../js/business-poweritem.js"></script>
<script type="text/javascript">
function addFileItem(){
	var fileItemContainer=document.getElementById("fileItemContainer");
	var span=document.createElement("span");
	span.innerHTML="<input type=\"file\" name=\"file\" /><a href=\"javascript:void(0)\" onclick=\"deleteFileItem(this)\">删除</a><br/>";
	fileItemContainer.appendChild(span);
}
function deleteFileItem(linkItem){
	if(confirm("确认删除？")){
		linkItem.parentNode.parentNode.removeChild(linkItem.parentNode);
	}
}
function checkForm(frm){
	return true;
}
function initPowerDropList(obj,pid,step){
	for(var i=0;i<menuItems.length;i++){
		if(menuItems[i].pid==pid){
			obj.options[obj.options.length]=new Option(stepToSpace(step?step:0)+menuItems[i].text,menuItems[i].id,true,false);
			initPowerDropList(obj,menuItems[i].id,(step?step:0)+1);
		}
	}
}
function stepToSpace(step){
	var buffer="";
	for(var i=0;i<step;i++){
		buffer+="　　";//注意，这里使用了全角空格！
	}
	return buffer;
}
window.onload=function(){
	initPowerDropList(dqbb.$("parentPowerItem"),0);
};
</script>
</head>
<body>
<form action="#" method="post" id="editForm" onsubmit="return checkForm(this)">
<table cellpadding="0" cellspacing="1" border="0" width="100%">
	<tr class="th">
		<td colspan="2">录入供应商功能点</td>
	</tr>
	<tr class="tb">
		<td width="80">父级功能点：</td>
		<td><select name="parentPowerItem" id="parentPowerItem">
			<option value="">==选择功能点==</option>
		</select></td>
	</tr>
	<tr class="tb">
		<td>功能点：</td>
		<td><input type="text" size="70" name="powerItemName" id="powerItemName" /></td>
	</tr>
	<tr class="tb">
		<td>管理地址：</td>
		<td><input type="text" size="70" name="powerItemUrl" id="powerItemUrl" /></td>
	</tr>
	<tr class="tb">
		<td>备注：</td>
		<td><textarea name="remark" id="remark" cols="80" rows="5"></textarea></td>
	</tr>
	<tr class="tf">
		<td colspan="2">
			<input type="submit" value="" class="submit"/>
			<input type="reset" value="" class="reset"/>
		</td>
	</tr>
</table>
</form>
</body>
</html>